/**
 * Copyright (c) 2010-2011 Pierre Labatut
 *
 * This file is part of Space-Chronicles project.
 *
 * Space-Chronicles is free software: you can redistribute it and/or modify it
 * under the terms of its license which may be found in the accompanying
 * LICENSE file or <http://code.google.com/p/space-chronicles/>.
 */
package space.stream;

import space.math.Vector2f;

/**
 *
 * @author Pierre
 */
class IOVector2f implements StructureIO<Vector2f> {

    public Class<Vector2f> type() {
        return Vector2f.class;
    }

    public Vector2f read(StructureInput si) {
        return new Vector2f(si.readFloat(), si.readFloat());
    }
}
